<template>
	<div class="page-wrap">
		<div class="page-content p-0">
			<div class="page-column p-0">
				<div class="page-form p-x-0">
					<el-form
						:model="ruleForm"
						:rules="rules"
						label-position="left"
						label-width="150px"
						ref="form"
						label-suffix="："
					>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE1给定健康效应的案例数量</div>
								<el-form-item label="数量" prop="TYPE1NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE1NUMBERChange"
										v-model.number="ruleForm.TYPE1NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPE1OUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPE1OUT_NAM" label="输出损伤类型" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE1OUT_NAM"
														:prop="'TYPE1OUTTab.'+scope.$index+'.TYPE1OUT_NAM'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE1OUT_NAM"
															:label.sync="scope.row.TYPE1OUT_NAMName"
															:options="TYPE1OUT_NAMoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE1OUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE1OUT_ST"
														:prop="'TYPE1OUTTab.'+scope.$index+'.TYPE1OUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE1OUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE1OUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE1OUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE1OUT_ED"
														:prop="'TYPE1OUTTab.'+scope.$index+'.TYPE1OUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE1OUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE1OUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE1OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE1OUT_CCDF"
														:prop="'TYPE1OUTTab.'+scope.$index+'.TYPE1OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE1OUT_CCDF"
															:label.sync="scope.row.TYPE1OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE2早期死亡范围</div>
								<el-form-item label="数量" prop="TYPE2NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE2NUMBERChange"
										v-model.number="ruleForm.TYPE2NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPE2OUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPE2OUT_VAL" label="致死阈值" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE2OUT_VAL"
														:prop="'TYPE2OUTTab.'+scope.$index+'.TYPE2OUT_VAL'"
													>
														<el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE2OUT_VAL"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE2OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE2OUT_CCDF"
														:prop="'TYPE2OUTTab.'+scope.$index+'.TYPE2OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE2OUT_CCDF"
															:label.sync="scope.row.TYPE2OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE3超出指定剂量阈值的人口</div>
								<el-form-item label="数量" prop="TYPE3NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TTYPE3NUMBERChange"
										v-model.number="ruleForm.TYPE3NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPE3OUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPE3OUT_NAM" label="输出器官" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE3OUT_NAM"
														:prop="'TYPE3OUTTab.'+scope.$index+'.TYPE3OUT_NAM'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE3OUT_NAM"
															:label.sync="scope.row.TYPE3OUT_NAMName"
															:options="TYPE3OUT_NAMoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE3OUT_THR" label="剂量阈值" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE3OUT_THR"
														:prop="'TYPE3OUTTab.'+scope.$index+'.TYPE3OUT_THR'"
													>
														<el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE3OUT_THR"
														></el-input>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE3OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE3OUT_CCDF"
														:prop="'TYPE3OUTTab.'+scope.$index+'.TYPE3OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE3OUT_CCDF"
															:label.sync="scope.row.TYPE3OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE4平均个人风险</div>
								<el-form-item label="数量" prop="TYPE4NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE4NUMBERChange"
										v-model.number="ruleForm.TYPE4NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table
											ref="multipleTable"
											:data="ruleForm.TYPE4OUT_DISTAB"
											tooltip-effect="dark"
											border
										>
											<el-table-column prop="TYPE4OUT_DIS" label="距离" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE4OUT_DIS"
														:prop="'TYPE4OUT_DISTAB.'+scope.$index+'.TYPE4OUT_DIS'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE4OUT_DIS"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE4OUT_DIS" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE4OUT_NUM" label="输出损伤类型" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE4OUT_NUM"
														:prop="'TYPE4OUT_DISTAB.'+scope.$index+'.TYPE4OUT_NUM'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE4OUT_NUM"
															:label.sync="scope.row.TYPE4OUT_NUMName"
															:options="TYPE4OUT_NUMoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>

											<el-table-column prop="TYPE4OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE4OUT_CCDF"
														:prop="'TYPE4OUT_DISTAB.'+scope.$index+'.TYPE4OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE4OUT_CCDF"
															:label.sync="scope.row.TYPE4OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE5集体剂量</div>
								<el-form-item label="数量" prop="TYPE5NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE5NUMBERChange"
										v-model.number="ruleForm.TYPE5NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table
											ref="multipleTable"
											:data="ruleForm.TYPE5OUT_ORGTab"
											tooltip-effect="dark"
											border
										>
											<el-table-column prop="TYPE5OUT_ORG" label="输出器官" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE5OUT_ORG"
														:prop="'TYPE5OUT_ORGTab.'+scope.$index+'.TYPE5OUT_ORG'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE5OUT_ORG"
															:label.sync="scope.row.TYPE5OUT_ORGName"
															:options="TYPE5OUT_ORGoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE5OUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE5OUT_ST"
														:prop="'TYPE5OUT_ORGTab.'+scope.$index+'.TYPE5OUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE5OUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE5OUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE5OUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE5OUT_ED"
														:prop="'TYPE5OUT_ORGTab.'+scope.$index+'.TYPE5OUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE5OUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE5OUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE5OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE5OUT_CCDF"
														:prop="'TYPE5OUT_ORGTab.'+scope.$index+'.TYPE5OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE5OUT_CCDF"
															:label.sync="scope.row.TYPE5OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE6随距离变化的轴线剂量</div>
								<el-form-item label="数量" prop="TYPE6NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE6NUMBERChange"
										v-model.number="ruleForm.TYPE6NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table
											ref="multipleTable"
											:data="ruleForm.TYPE6OUT_ORGTab"
											tooltip-effect="dark"
											border
										>
											<el-table-column prop="TYPE6OUT_ORG" label="输出器官" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE6OUT_ORG"
														:prop="'TYPE6OUT_ORGTab.'+scope.$index+'.TYPE6OUT_ORG'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE6OUT_ORG"
															:label.sync="scope.row.TYPE6OUT_ORGName"
															:options="TYPE6OUT_ORGoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE6OUT_PATH" label="输出途径" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE6OUT_PATH"
														:prop="'TYPE6OUT_ORGTab.'+scope.$index+'.TYPE6OUT_PATH'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE6OUT_PATH"
															:label.sync="scope.row.TYPE6OUT_PATHName"
															:options="TYPE6OUT_PATHoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE6OUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE6OUT_ST"
														:prop="'TYPE6OUT_ORGTab.'+scope.$index+'.TYPE6OUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE6OUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE6OUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE6OUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE6OUT_ED"
														:prop="'TYPE6OUT_ORGTab.'+scope.$index+'.TYPE6OUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE6OUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE6OUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE6OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE6OUT_CCDF"
														:prop="'TYPE6OUT_ORGTab.'+scope.$index+'.TYPE6OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE6OUT_CCDF"
															:label.sync="scope.row.TYPE6OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE7随距离变化的轴线风险</div>
								<el-form-item label="数量" prop="TYPE7NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE7NUMBERChange"
										v-model.number="ruleForm.TYPE7NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPE7OUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPE7OUT_EFF" label="输出损伤类型" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE7OUT_EFF"
														:prop="'TYPE7OUTTab.'+scope.$index+'.TYPE7OUT_EFF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE7OUT_EFF"
															:label.sync="scope.row.TYPE7OUT_EFFName"
															:options="TYPE7OUT_EFFOptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE7OUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE7OUT_ST"
														:prop="'TYPE7OUTTab.'+scope.$index+'.TYPE7OUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE7OUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE7OUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE7OUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE7OUT_ED"
														:prop="'TYPE7OUTTab.'+scope.$index+'.TYPE7OUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE7OUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE7OUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE7OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE7OUT_CCDF"
														:prop="'TYPE7OUTTab.'+scope.$index+'.TYPE7OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE7OUT_CCDF"
															:label.sync="scope.row.TYPE7OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<div class="separate m-b-20"></div>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPE8人口权重风险</div>
								<el-form-item label="数量" prop="TYPE8NUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPE8NUMBERChange"
										v-model.number="ruleForm.TYPE8NUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPE8OUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPE8OUT_EFF" label="输出损伤类型" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE8OUT_EFF"
														:prop="'TYPE8OUTTab.'+scope.$index+'.TYPE8OUT_EFF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE8OUT_EFF"
															:label.sync="scope.row.TYPE8OUT_EFFName"
															:options="TYPE8OUT_EFFoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>

											<el-table-column prop="TYPE8OUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE8OUT_ST"
														:prop="'TYPE8OUTTab.'+scope.$index+'.TYPE8OUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE8OUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE8OUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE8OUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE8OUT_ED"
														:prop="'TYPE8OUTTab.'+scope.$index+'.TYPE8OUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPE8OUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPE8OUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPE8OUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPE8OUT_CCDF"
														:prop="'TYPE8OUTTab.'+scope.$index+'.TYPE8OUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPE8OUT_CCDF"
															:label.sync="scope.row.TYPE8OUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">TYPEA随距离变化的峰值剂量</div>
								<el-form-item label="数量" prop="TYPEANUMBER">
									<el-input
										size="medium"
										class="smallForm"
										@input="TYPEANUMBERChange"
										v-model.number="ruleForm.TYPEANUMBER"
									></el-input>
								</el-form-item>
								<div class="tablereight">
									<div class="tablecontent">
										<el-table ref="multipleTable" :data="ruleForm.TYPEAOUTTab" tooltip-effect="dark" border>
											<el-table-column prop="TYPEAOUT_ORG" label="输出器官" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPEAOUT_ORG"
														:prop="'TYPEAOUTTab.'+scope.$index+'.TYPEAOUT_ORG'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPEAOUT_ORG"
															:label.sync="scope.row.TYPEAOUT_ORGName"
															:options="TYPEAOUT_ORGoptions"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPEAOUT_ST" label="开始的距离数" align="center" min-width="120">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPEAOUT_ST"
														:prop="'TYPEAOUTTab.'+scope.$index+'.TYPEAOUT_ST'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPEAOUT_ST"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPEAOUT_ST" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPEAOUT_ED" label="结束的距离数" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPEAOUT_ED"
														:prop="'TYPEAOUTTab.'+scope.$index+'.TYPEAOUT_ED'"
													>
														<!-- <el-input
															oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,20})?).*$/g, '$1')"
															class="bigForm"
															v-model="scope.row.TYPEAOUT_ED"
														></el-input> -->
														<el-select class="bigForm" v-model="scope.row.TYPEAOUT_ED" clearable placeholder="请选择">
															<el-option
															v-for="(item,index) in basic_Data.GESPAEND_DISTANCE"
															:key="index"
															:label="item"
															:value="index+1">
															</el-option>
														</el-select>
													</el-form-item>
												</template>
											</el-table-column>
											<el-table-column prop="TYPEAOUT_CCDF" label="是否输出CCDF" min-width="120" align="center">
												<template slot-scope="scope">
													<el-form-item
														label-width="0px"
														:rules="rules.TYPEAOUT_CCDF"
														:prop="'TYPEAOUTTab.'+scope.$index+'.TYPEAOUT_CCDF'"
													>
														<select-para
															style="width:100%"
															size="medium"
															class="bigForm"
															v-model="scope.row.TYPEAOUT_CCDF"
															:label.sync="scope.row.TYPEAOUT_CCDF"
															:options="CCDFOPTIONS"
														></select-para>
													</el-form-item>
												</template>
											</el-table-column>
										</el-table>
									</div>
								</div>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="24">
								<div class="my_title p-b-20">其他输出设置</div>

								<el-form-item label="输出debug等级" prop="MIIPRINT001">
									<select-para
										style="width:100%"
										size="medium"
										class="mediumForm"
										v-model="ruleForm.MIIPRINT001"
										:label.sync="ruleForm.MIIPRINT001"
										:options="MIIPRINT001Options"
									></select-para>
								</el-form-item>

								<el-form-item label="是否输出风险表" prop="MIRISCAT001">
									<select-para
										style="width:100%"
										size="medium"
										class="mediumForm"
										v-model="ruleForm.MIRISCAT001"
										:label.sync="ruleForm.MIRISCAT001"
										:options="TRUEOptions"
									></select-para>
								</el-form-item>
								<el-form-item label="是否输出风玫瑰图" prop="MIOVRRID001">
									<select-para
										style="width:100%"
										size="medium"
										class="mediumForm"
										v-model="ruleForm.MIOVRRID001"
										:label.sync="ruleForm.MIOVRRID001"
										:options="TRUEOptions"
									></select-para>
								</el-form-item>

								<el-form-item label="应急预案名称" prop="EZEANAM2001">
									<el-input class="mediumForm" size="medium" v-model="ruleForm.EZEANAM2001"></el-input>
								</el-form-item>
							</el-col>
						</el-row>
					</el-form>
				</div>
				<div class="bottom-btn">
					<el-button type="primary" @click="submitFun">提交</el-button>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
import selectPara from "@/components/selectPara"
import commCheckbox from "@/components/commCheckbox"
import ImageCropper from "@/components/ImageCropper"
import FixBottomButton from "@/components/FixBottomButton"
import ueditor from "@/components/ueditor"
import textLength from "@/components/common/comp/textLength"
import { commPara } from "@/mixins/mixins"
import { mapState } from "vuex"

import {
	SS_ZAOQI_SEARCH,
	SS_AIZHENG_SEARCH,
	BATCH_SUBMIT,
	BATCH_DETAIL,
} from "@/service/hd5.js"
import { dome, selecttext, text, optional } from "@/utils/verify.js"

export default {
	name: "aboutUs",
	props: {
		basicDataF: Object,
	},
	mixins: [commPara],
	components: {
		selectPara,
		ImageCropper,
		textLength,
		commCheckbox,
		FixBottomButton,
		ueditor,
	},

	data() {
		var C1GEN = (rule, value, callback) => {
			// console.log(this)
			if (value == "") {
				callback(new Error("输入值不能为空"))
			} else if (
				parseFloat(value) < 1 ||
				value > this.basic_Data.GESPAEND_DISTANCE.length
			) {
				callback(
					new Error(
						"输入范围为[1，" +
							this.basic_Data.GESPAEND_DISTANCE.length +
							"]"
					)
				)
			} else {
				callback()
			}
		}
		var CTGEN = (rule, value, callback) => {
			// console.log(this)
			if (value == "") {
				callback(new Error("输入值不能为空"))
			} else if (
				parseFloat(value) < 1 ||
				value > this.basic_Data.GESPAEND_DISTANCE.length
			) {
				callback(
					new Error(
						"输入范围为[1，" +
							this.basic_Data.GESPAEND_DISTANCE.length +
							"]"
					)
				)
			} else {
				callback()
			}
		}
		return {
			GESPAEND_DISTANCE: "",
			ruleForm: {
				TYPE1NUMBER: "0",
				TYPE2NUMBER: "0",
				TYPE3NUMBER: "0",
				TYPE4NUMBER: "0",
				TYPE5NUMBER: "0",
				TYPE6NUMBER: "0",
				TYPE7NUMBER: "0",
				TYPE8NUMBER: "0",
				TYPEANUMBER: "0",
				MIIPRINT001: "",
				MIRISCAT001: "FALSE",
				MIOVRRID001: "FALSE",
				EZEANAM2001: "",
				TYPE1OUTTab: [],
				TYPEAOUTTab: [],
				TYPE8OUTTab: [],
				TYPE7OUTTab: [],
				TYPE6OUT_ORGTab: [],
				TYPE5OUT_ORGTab: [],
				TYPE4OUT_DISTAB: [],
				TYPE3OUTTab: [],
				TYPE2OUTTab: [],
			},
			activeTab: "8",
			rules: {
				TYPE1NUMBER: [
					{
						validator: optional(0, 40),
						trigger: ["change", "blur"],
					},
				],
				TYPE2NUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				TYPE3NUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				TYPE4NUMBER: [
					{
						validator: optional(0, 20),
						trigger: ["change", "blur"],
					},
				],
				TYPE5NUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				TYPE6NUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				TYPE7NUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				TYPE8NUMBER: [
					{
						validator: optional(0, 20),
						trigger: ["change", "blur"],
					},
				],
				TYPEANUMBER: [
					{
						validator: optional(0, 10),
						trigger: ["change", "blur"],
					},
				],
				MIIPRINT001: [
					{
						validator: dome(0, 10),
						trigger: ["change", "blur"],
					},
				],
				EZEANAM2001: [
					{
						validator: text(0.8),
						trigger: ["change", "blur"],
					},
				],
				TYPE1OUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE1OUT_ED: [
					{
						validator: CTGEN,
						trigger: ["change", "blur"],
					},
				],
				TYPE2OUT_VAL: [
					{
						validator: dome(0.0, 1.0),
						trigger: ["change", "blur"],
					},
				],
				TYPE3OUT_THR: [
					{
						validator: dome(0.0, 1000.0),
						trigger: ["change", "blur"],
					},
				],
				TYPE4OUT_DIS: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE5OUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE5OUT_ED: [
					{ validator: CTGEN, trigger: ["change", "blur"] },
				],
				TYPE6OUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE6OUT_ED: [
					{ validator: CTGEN, trigger: ["change", "blur"] },
				],
				TYPE7OUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE7OUT_ED: [
					{ validator: CTGEN, trigger: ["change", "blur"] },
				],
				TYPE8OUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPE8OUT_ED: [
					{ validator: CTGEN, trigger: ["change", "blur"] },
				],
				TYPEAOUT_ST: [
					{ validator: C1GEN, trigger: ["change", "blur"] },
				],
				TYPEAOUT_ED: [
					{ validator: CTGEN, trigger: ["change", "blur"] },
				],
				TYPE1OUT_NAM: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE3OUT_NAM: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE4OUT_NUM: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE5OUT_ORG: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE6OUT_ORG: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE6OUT_PATH: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE7OUT_EFF: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPE8OUT_EFF: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
				TYPEAOUT_ORG: [
					{ validator: selecttext, trigger: ["change", "blur"] },
				],
			},

			CCDFOPTIONS: [
				{ label: "", value: "" },
				{ label: "CCDF", value: "CCDF" },
			],
			TRUEOptions: [
				{ label: "TRUE", value: "TRUE" },
				{ label: "FALSE", value: "FALSE" },
			],
			TYPE1OUT_NAMoptions: [],
			TYPE3OUT_NAMoptions: [],
			TYPE6OUT_PATHoptions: [],
			TYPEAOUT_ORGoptions: [],
			TYPE5OUT_ORGoptions: [],
			TYPE4OUT_NUMoptions: [],
			TYPE7OUT_EFFOptions: [],
			TYPE8OUT_EFFoptions: [],
			MIIPRINT001Options: [],
			caidantype:2,
		}
	},
	computed: {
		...mapState({
			basic_Data: (state) => state.token.basic_Data,
			early_Data: (state) => state.token.early_Data,
		}),
	},
	created() {
		this.caidantype=this.$route.query.caidantype
	},
	mounted() {
		this.getoption()
		this.getData()
		this.getDICINFOS4()
	},
	methods: {
		getoption() {
			this.ruleForm.TYPE1NUMBER = this.early_Data.TYPE1NUMBER
				? this.early_Data.TYPE1NUMBER.toString()
				: "0"
			this.TYPE1NUMBERChange(this.early_Data.TYPE1NUMBER)
			// 	console.log(this.early_Data)
			// console.log(this.early_Data.TYPE1OUT_NAM)
			this.ruleForm.TYPE2NUMBER = this.early_Data.TYPE2NUMBER
				? this.early_Data.TYPE2NUMBER.toString()
				: "0"
			this.TYPE2NUMBERChange(this.early_Data.TYPE2NUMBER)

			this.ruleForm.TYPE3NUMBER = this.early_Data.TYPE3NUMBER
				? this.early_Data.TYPE3NUMBER.toString()
				: "0"
			this.TTYPE3NUMBERChange(this.early_Data.TYPE3NUMBER)

			this.ruleForm.TYPE4NUMBER = this.early_Data.TYPE4NUMBER
				? this.early_Data.TYPE4NUMBER.toString()
				: "0"
			this.TYPE4NUMBERChange(this.early_Data.TYPE4NUMBER)

			this.ruleForm.TYPE5NUMBER = this.early_Data.TYPE5NUMBER
				? this.early_Data.TYPE5NUMBER.toString()
				: "0"
			this.TYPE5NUMBERChange(this.early_Data.TYPE5NUMBER)

			this.ruleForm.TYPE6NUMBER = this.early_Data.TYPE6NUMBER
				? this.early_Data.TYPE6NUMBER.toString()
				: "0"
			this.TYPE6NUMBERChange(this.early_Data.TYPE6NUMBER)

			this.ruleForm.TYPE7NUMBER = this.early_Data.TYPE7NUMBER
				? this.early_Data.TYPE7NUMBER.toString()
				: "0"
			this.TYPE7NUMBERChange(this.early_Data.TYPE7NUMBER)

			this.ruleForm.TYPE8NUMBER = this.early_Data.TYPE8NUMBER
				? this.early_Data.TYPE8NUMBER.toString()
				: "0"
			this.TYPE8NUMBERChange(this.early_Data.TYPE8NUMBER)

				this.ruleForm.TYPEANUMBER = this.early_Data.TYPEANUMBER
				? this.early_Data.TYPEANUMBER.toString()
				: "0"
			this.TYPEANUMBERChange(this.early_Data.TYPEANUMBER)

			this.ruleForm.MIIPRINT001 = this.early_Data.MIIPRINT001
				? this.early_Data.MIIPRINT001.toString()
				: "0"
				this.ruleForm.MIRISCAT001 = this.early_Data.MIRISCAT001
				? this.early_Data.MIRISCAT001.toString()
				: "FALSE"
				this.ruleForm.MIOVRRID001 = this.early_Data.MIOVRRID001
				? this.early_Data.MIOVRRID001.toString()
				: "FALSE"
				this.ruleForm.EZEANAM2001 = this.early_Data.EZEANAM2001
				? this.early_Data.EZEANAM2001.toString()
				: ""



		},
		getData() {
			//获取MIORGDEF_ORG
			if (
				this.early_Data.DCF_FILE001 == "DOSDATA.INP" ||
				this.early_Data.DCF_FILE001 == "DOSDATA.NEW"
			) {
				this.MIORGDEF_ORG = this.$props.basicDataF.MIORGDEF_ORG1
			} else if (
				this.early_Data.DCF_FILE001 == "DOSD60.INP" ||
				this.early_Data.DCF_FILE001 == "DOSD825.INP"
			) {
				this.MIORGDEF_ORG = this.$props.basicDataF.MIORGDEF_ORG2
			}

			//获取EINUMEIN_EI
		
			// console.log(this.early_Data.EINUMEIN_EI)
			this.EINUMEIN_EI = []
			this.early_Data.EINUMEIN_EI.forEach((item) => {
				this.$props.basicDataF.zaoqiList.forEach((i) => {
					// console.log(i)
					// console.log(item)
					if (item == i.zaoqi_ename) {
						this.EINUMEIN_EI.push(i)
					}
				})
			}) 

			//获取LCANCERS_AC 
			this.LCANCERS_AC = []
			this.early_Data.LCANCERS_AC.forEach((item) => {
				this.$props.basicDataF.aiZhengList.forEach((i) => {
					// console.log(i)
					// console.log(item)
					if (item == i.aizheng_ename) {
						this.LCANCERS_AC.push(i)
					}
				})
			}) 
			this.GESPAEND_DISTANCE = this.basic_Data.GESPAEND_DISTANCE
			this.DCF_FILE001 = this.early_Data.DCF_FILE001 
			let tempMIORGDEF_ORG = this.MIORGDEF_ORG.map((item) => {
				return {
					label: item.dic_cname,
					value: item.dic_ename,
				}
			}) 
			this.TYPE3OUT_NAMoptions = tempMIORGDEF_ORG
			this.TYPE5OUT_ORGoptions = tempMIORGDEF_ORG
			this.TYPE6OUT_ORGoptions = tempMIORGDEF_ORG
			this.TYPEAOUT_ORGoptions = tempMIORGDEF_ORG
			if (
				this.DCF_FILE001 == "DOSD60.INP" ||
				this.DCF_FILE001 == "DOSD825.INP"
			) {
				let tempData = []
				let tempLCANCERS_ACSH = this.LCANCERS_AC.map((item) => {
					return {
						label: item.aizheng_cname + "(癌症损伤)",
						value: "CAN" + "\xa0" + "INJ/" + item.aizheng_ename,
					}
				})
				let tempLCANCERS_ACSW = this.LCANCERS_AC.map((item) => {
					return {
						label: item.aizheng_cname + "(癌症死亡)",
						value: "CAN" + "\xa0" + "FAT/" + item.aizheng_ename,
					}
				})
				tempData = [...tempLCANCERS_ACSH, ...tempLCANCERS_ACSW]
				tempData.push({
					label: "癌症总死亡",
					value: "CAN FAT/TOTAL",
				})
				tempData.push({
					label: "癌症总损伤",
					value: "CAN INJ/TOTAL",
				})
				this.TYPE1OUT_NAMoptions = tempData
				this.TYPE4OUT_NUMoptions = tempData
				this.TYPE7OUT_EFFOptions = tempData
				this.TYPE8OUT_EFFoptions = tempData
			} else if (
				this.DCF_FILE001 == "DOSDATA.INP" ||
				this.DCF_FILE001 == "DOSDATA.NEW"
			) {
				let tempEINUMEIN_EI = this.EINUMEIN_EI.map((item) => {
					return {
						label: item.zaoqi_cname,
						value: "ERL" + "\xa0" + "INJ/" + item.zaoqi_ename,
					}
				})

				let tempLCANCERS_ACSH = this.LCANCERS_AC.map((item) => {
					return {
						label: item.aizheng_cname + "(癌症损伤)",
						value: "CAN" + "\xa0" + "INJ/" + item.aizheng_ename,
					}
				})
				let tempLCANCERS_ACSW = this.LCANCERS_AC.map((item) => {
					return {
						label: item.aizheng_cname + "(癌症死亡)",
						value: "CAN" + "\xa0" + "FAT/" + item.aizheng_ename,
					}
				}) 
				let temp = []
				temp = [
					...tempEINUMEIN_EI,
					...tempLCANCERS_ACSH,
					...tempLCANCERS_ACSW,
				]
				// console.log(tempEINUMEIN_EI)
				// console.log(tempLCANCERS_ACSH)
				// console.log(tempLCANCERS_ACSW)
				temp.push({
					label: "早期总死亡",
					value: "ERL FAT/TOTAL",
				})
				temp.push({
					label: "癌症总死亡",
					value: "CAN FAT/TOTAL",
				})
				temp.push({
					label: "癌症总损伤",
					value: "CAN INJ/TOTAL",
				}) 
				this.TYPE1OUT_NAMoptions = temp
				this.TYPE4OUT_NUMoptions = temp
				this.TYPE7OUT_EFFOptions = temp
				this.TYPE8OUT_EFFoptions = temp
			} 
			this.MIIPRINT001Options = []
			for (let index = 0; index <= 10; index++) {
				let templabel = {
					label: index.toString(),
					value: index.toString(),
				}
				this.MIIPRINT001Options.push(templabel)
			}
		}, 
		getDICINFOS4() {
			let params = {
				dictypeid: 4,
			}  
			this.$appApi
				.ZD_GET_DICINFOS(params)
				.then((res) => { 
					var str = res.data.substring(8) 
					this.TYPE6OUT_PATHoptions = JSON.parse(str).map((item) => {
						return {
							label: item.dic_cname,
							value: item.dic_ename,
						}
					})
				})
				.catch((err) => {
					console.log(err)
				})
		},

		TYPE1NUMBERChange(value) {
			this.ruleForm.TYPE1OUTTab = []
			for (let index = 0; index < parseInt(value); index++) {
				this.ruleForm.TYPE1OUTTab.push({
					TYPE1OUT_NAM: this.early_Data.TYPE1OUT_NAM[index]
						? this.early_Data.TYPE1OUT_NAM[index]
						: "",
					TYPE1OUT_NAMName: "",
					TYPE1OUT_ST: this.early_Data.TYPE1OUT_ST[index]
						? this.early_Data.TYPE1OUT_ST[index]
						: "",
					TYPE1OUT_ED: this.early_Data.TYPE1OUT_ED[index]
						? this.early_Data.TYPE1OUT_ED[index]
						: "",
					TYPE1OUT_CCDF: this.early_Data.TYPE1OUT_CCDF[index]
						? this.early_Data.TYPE1OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE2NUMBERChange(value) {
			this.ruleForm.TYPE2OUTTab = []
			for (let index = 0; index < parseInt(value); index++) {
				this.ruleForm.TYPE2OUTTab.push({
					TYPE2OUT_VAL: this.early_Data.TYPE2OUT_VAL[index]
						? this.early_Data.TYPE2OUT_VAL[index]
						: "",
					TYPE2OUT_CCDF: this.early_Data.TYPE2OUT_CCDF[index]
						? this.early_Data.TYPE2OUT_CCDF[index]
						: "",
				})
			}
		},
		TTYPE3NUMBERChange(value) {
			this.ruleForm.TYPE3OUTTab = []
			for (let index = 0; index < parseInt(value); index++) {
				this.ruleForm.TYPE3OUTTab.push({
					TYPE3OUT_NAM: this.early_Data.TYPE3OUT_NAM[index]
						? this.early_Data.TYPE3OUT_NAM[index]
						: "",
					TYPE3OUT_NAMName: "",
					TYPE3OUT_THR: this.early_Data.TYPE3OUT_THR[index]
						? this.early_Data.TYPE3OUT_THR[index]
						: "",
					TYPE3OUT_CCDF: this.early_Data.TYPE3OUT_CCDF[index]
						? this.early_Data.TYPE3OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE4NUMBERChange(value) {
			this.ruleForm.TYPE4OUT_DISTAB = []
			for (let index = 0; index < parseInt(value); index++) {
				// console.log(index)
				this.ruleForm.TYPE4OUT_DISTAB.push({
					TYPE4OUT_DIS: this.early_Data.TYPE4OUT_DIS[index]
						? this.early_Data.TYPE4OUT_DIS[index]
						: "",
					TYPE4OUT_NUM: this.early_Data.TYPE4OUT_NUM[index]
						? this.early_Data.TYPE4OUT_NUM[index]
						: "",
					TYPE4OUT_NUMName: "",
					TYPE4OUT_CCDF: this.early_Data.TYPE4OUT_CCDF[index]
						? this.early_Data.TYPE4OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE5NUMBERChange() {
			this.ruleForm.TYPE5OUT_ORGTab = []
			for (
				let index = 0;
				index < parseInt(this.ruleForm.TYPE5NUMBER);
				index++
			) {
				this.ruleForm.TYPE5OUT_ORGTab.push({
					TYPE5OUT_ORG: this.early_Data.TYPE5OUT_ORG[index]
						? this.early_Data.TYPE5OUT_ORG[index]
						: "",
					TYPE5OUT_ORGName: "",
					TYPE5OUT_ST: this.early_Data.TYPE5OUT_ST[index]
						? this.early_Data.TYPE5OUT_ST[index]
						: "",
					TYPE5OUT_ED: this.early_Data.TYPE5OUT_ED[index]
						? this.early_Data.TYPE5OUT_ED[index]
						: "",
					TYPE5OUT_CCDF: this.early_Data.TYPE5OUT_CCDF[index]
						? this.early_Data.TYPE5OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE6NUMBERChange(value) {
			this.ruleForm.TYPE6OUT_ORGTab = []
			for (let index = 0; index < parseInt(value); index++) {
				this.ruleForm.TYPE6OUT_ORGTab.push({
					TYPE6OUT_ORG: this.early_Data.TYPE6OUT_ORG[index]
						? this.early_Data.TYPE6OUT_ORG[index]
						: "",
					TYPE6OUT_ORGName: "",
					TYPE6OUT_PATH: this.early_Data.TYPE6OUT_PATH[index]
						? this.early_Data.TYPE6OUT_PATH[index]
						: "",
					TYPE6OUT_PATHName: "",
					TYPE6OUT_ST: this.early_Data.TYPE6OUT_ST[index]
						? this.early_Data.TYPE6OUT_ST[index]
						: "",
					TYPE6OUT_ED: this.early_Data.TYPE6OUT_ED[index]
						? this.early_Data.TYPE6OUT_ED[index]
						: "",
					TYPE6OUT_CCDF: this.early_Data.TYPE6OUT_CCDF[index]
						? this.early_Data.TYPE6OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE7NUMBERChange(value) {
			this.ruleForm.TYPE7OUTTab = []
			for (
				let index = 0;
				index < parseInt(this.ruleForm.TYPE7NUMBER);
				index++
			) {
				this.ruleForm.TYPE7OUTTab.push({
					TYPE7OUT_EFF: this.early_Data.TYPE7OUT_EFF[index]
						? this.early_Data.TYPE7OUT_EFF[index]
						: "",
					TYPE7OUT_EFFName: "",
					TYPE7OUT_ST: this.early_Data.TYPE7OUT_ST[index]
						? this.early_Data.TYPE7OUT_ST[index]
						: "",
					TYPE7OUT_ED: this.early_Data.TYPE7OUT_ED[index]
						? this.early_Data.TYPE7OUT_ED[index]
						: "",
					TYPE7OUT_CCDF: this.early_Data.TYPE7OUT_CCDF[index]
						? this.early_Data.TYPE7OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPE8NUMBERChange(value) {
			this.ruleForm.TYPE8OUTTab = []
			for (
				let index = 0;
				index < parseInt(value);
				index++
			) {
				this.ruleForm.TYPE8OUTTab.push({
					TYPE8OUT_EFF:  this.early_Data.TYPE8OUT_EFF[index]
						? this.early_Data.TYPE8OUT_EFF[index]
						: "",
					TYPE8OUT_EFFName: "",
					TYPE8OUT_ST: this.early_Data.TYPE8OUT_ST[index]
						? this.early_Data.TYPE8OUT_ST[index]
						: "",
					TYPE8OUT_ED: this.early_Data.TYPE8OUT_ED[index]
						? this.early_Data.TYPE8OUT_ED[index]
						: "",
					TYPE8OUT_CCDF: this.early_Data.TYPE8OUT_CCDF[index]
						? this.early_Data.TYPE8OUT_CCDF[index]
						: "",
				})
			}
		},
		TYPEANUMBERChange(value) {
			this.ruleForm.TYPEAOUTTab = []
			for (
				let index = 0;
				index < parseInt(value);
				index++
			) {
				this.ruleForm.TYPEAOUTTab.push({
					TYPEAOUT_ORG: this.early_Data.TYPEAOUT_ORG[index]
						? this.early_Data.TYPEAOUT_ORG[index]
						: "",
					TYPEAOUT_ORGName: "",
					TYPEAOUT_ST:  this.early_Data.TYPEAOUT_ST[index]
						? this.early_Data.TYPEAOUT_ST[index]
						: "",
					TYPEAOUT_ED:  this.early_Data.TYPEAOUT_ED[index]
						? this.early_Data.TYPEAOUT_ED[index]
						: "",
					TYPEAOUT_CCDF:  this.early_Data.TYPEAOUT_CCDF[index]
						? this.early_Data.TYPEAOUT_CCDF[index]
						: "",
				})
			}
		},
		submitFun() {
			//保存
			this.$refs.form.validate((valid) => {
				if (valid) {
					// console.log(this.early_Data)
					let tempdata = JSON.parse(JSON.stringify(this.early_Data))
					tempdata.TYPE1NUMBER = this.ruleForm.TYPE1NUMBER
						? parseInt(this.ruleForm.TYPE1NUMBER)
						: 0
					if (tempdata.TYPE1NUMBER > 0) {
						tempdata.TYPE1OUT_NAM = this.ruleForm.TYPE1OUTTab.map(
							(item) => {
								return item.TYPE1OUT_NAM
							}
						)
						tempdata.TYPE1OUT_ST = this.ruleForm.TYPE1OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE1OUT_ST)
							}
						)
						tempdata.TYPE1OUT_ED = this.ruleForm.TYPE1OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE1OUT_ED)
							}
						)
						tempdata.TYPE1OUT_CCDF = this.ruleForm.TYPE1OUTTab.map(
							(item) => {
								return item.TYPE1OUT_CCDF
									? item.TYPE1OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE1OUT_NAM = []
						tempdata.TYPE1OUT_ST = []
						tempdata.TYPE1OUT_ED = []
						tempdata.TYPE1OUT_CCDF = []
					}
					tempdata.TYPE2NUMBER = this.ruleForm.TYPE2NUMBER
						? parseInt(this.ruleForm.TYPE2NUMBER)
						: 0
					if (tempdata.TYPE2NUMBER > 0) {
						tempdata.TYPE2OUT_VAL = this.ruleForm.TYPE2OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE2OUT_VAL)
							}
						)
						tempdata.TYPE2OUT_CCDF = this.ruleForm.TYPE2OUTTab.map(
							(item) => {
								return item.TYPE2OUT_CCDF
									? item.TYPE2OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE2OUT_VAL = []
						tempdata.TYPE2OUT_CCDF = []
					}

					tempdata.TYPE3NUMBER = this.ruleForm.TYPE3NUMBER
						? parseInt(this.ruleForm.TYPE3NUMBER)
						: 0
					if (tempdata.TYPE3NUMBER > 0) {
						tempdata.TYPE3OUT_NAM = this.ruleForm.TYPE3OUTTab.map(
							(item) => {
								return item.TYPE3OUT_NAM
							}
						)
						tempdata.TYPE3OUT_THR = this.ruleForm.TYPE3OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE3OUT_THR)
							}
						)
						tempdata.TYPE3OUT_CCDF = this.ruleForm.TYPE3OUTTab.map(
							(item) => {
								return item.TYPE3OUT_CCDF
									? item.TYPE3OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE3OUT_NAM = []
						tempdata.TYPE3OUT_THR = []
						tempdata.TYPE3OUT_CCDF = []
					}

					tempdata.TYPE4NUMBER = this.ruleForm.TYPE4NUMBER
						? parseInt(this.ruleForm.TYPE4NUMBER)
						: 0
					if (tempdata.TYPE4NUMBER > 0) {
						tempdata.TYPE4OUT_DIS = this.ruleForm.TYPE4OUT_DISTAB.map(
							(item) => {
								return parseInt(item.TYPE4OUT_DIS)
							}
						)
						tempdata.TYPE4OUT_NUM = this.ruleForm.TYPE4OUT_DISTAB.map(
							(item) => {
								return item.TYPE4OUT_NUM
							}
						)
						tempdata.TYPE4OUT_CCDF = this.ruleForm.TYPE4OUT_DISTAB.map(
							(item) => {
								return item.TYPE4OUT_CCDF
									? item.TYPE4OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE4OUT_DIS = []
						tempdata.TYPE4OUT_NUM = []
						tempdata.TYPE4OUT_CCDF = []
					}

					tempdata.TYPE5NUMBER = this.ruleForm.TYPE5NUMBER
						? parseInt(this.ruleForm.TYPE5NUMBER)
						: 0
					if (tempdata.TYPE5NUMBER > 0) {
						tempdata.TYPE5OUT_ORG = this.ruleForm.TYPE5OUT_ORGTab.map(
							(item) => {
								return item.TYPE5OUT_ORG
							}
						)
						tempdata.TYPE5OUT_ST = this.ruleForm.TYPE5OUT_ORGTab.map(
							(item) => {
								return parseFloat(item.TYPE5OUT_ST)
							}
						)
						tempdata.TYPE5OUT_ED = this.ruleForm.TYPE5OUT_ORGTab.map(
							(item) => {
								return parseFloat(item.TYPE5OUT_ED)
							}
						)
						tempdata.TYPE5OUT_CCDF = this.ruleForm.TYPE5OUT_ORGTab.map(
							(item) => {
								return item.TYPE5OUT_CCDF
									? item.TYPE5OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE5OUT_ORG = []
						tempdata.TYPE5OUT_ST = []
						tempdata.TYPE5OUT_ED = []
						tempdata.TYPE5OUT_CCDF = []
					}

					tempdata.TYPE6NUMBER = this.ruleForm.TYPE6NUMBER
						? parseInt(this.ruleForm.TYPE6NUMBER)
						: 0
					if (tempdata.TYPE6NUMBER > 0) {
						tempdata.TYPE6OUT_ORG = this.ruleForm.TYPE6OUT_ORGTab.map(
							(item) => {
								return item.TYPE6OUT_ORG
							}
						)
						tempdata.TYPE6OUT_PATH = this.ruleForm.TYPE6OUT_ORGTab.map(
							(item) => {
								return item.TYPE6OUT_PATH
							}
						)
						tempdata.TYPE6OUT_ST = this.ruleForm.TYPE6OUT_ORGTab.map(
							(item) => {
								return parseFloat(item.TYPE6OUT_ST)
							}
						)
						tempdata.TYPE6OUT_ED = this.ruleForm.TYPE6OUT_ORGTab.map(
							(item) => {
								return parseFloat(item.TYPE6OUT_ED)
							}
						)
						tempdata.TYPE6OUT_CCDF = this.ruleForm.TYPE6OUT_ORGTab.map(
							(item) => {
								return item.TYPE6OUT_CCDF
									? item.TYPE6OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE6OUT_ORG = []
						tempdata.TYPE6OUT_PATH = []
						tempdata.TYPE6OUT_ST = []
						tempdata.TYPE6OUT_ED = []
						tempdata.TYPE6OUT_CCDF = []
					} 
					tempdata.TYPE7NUMBER = tempdata.TYPE7NUMBER
						? parseInt(this.ruleForm.TYPE7NUMBER)
						: 0

					if (tempdata.TYPE7NUMBER > 0) {
						tempdata.TYPE7OUT_EFF = this.ruleForm.TYPE7OUTTab.map(
							(item) => {
								return item.TYPE7OUT_EFF
							}
						)
						tempdata.TYPE7OUT_ST = this.ruleForm.TYPE7OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE7OUT_ST)
							}
						)
						tempdata.TYPE7OUT_ED = this.ruleForm.TYPE7OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE7OUT_ED)
							}
						)
						tempdata.TYPE7OUT_CCDF = this.ruleForm.TYPE7OUTTab.map(
							(item) => {
								return item.TYPE7OUT_CCDF
									? item.TYPE7OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE7OUT_EFF = []
						tempdata.TYPE7OUT_ST = []
						tempdata.TYPE7OUT_ED = []
						tempdata.TYPE7OUT_CCDF = []
					} 
					tempdata.TYPE8NUMBER = this.ruleForm.TYPE8NUMBER
						? parseInt(this.ruleForm.TYPE8NUMBER)
						: 0
					if (tempdata.TYPE8NUMBER > 0) {
						tempdata.TYPE8OUT_EFF = this.ruleForm.TYPE8OUTTab.map(
							(item) => {
								return item.TYPE8OUT_EFF
							}
						)
						tempdata.TYPE8OUT_ST = this.ruleForm.TYPE8OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE8OUT_ST)
							}
						)
						tempdata.TYPE8OUT_ED = this.ruleForm.TYPE8OUTTab.map(
							(item) => {
								return parseFloat(item.TYPE8OUT_ED)
							}
						)
						tempdata.TYPE8OUT_CCDF = this.ruleForm.TYPE8OUTTab.map(
							(item) => {
								return item.TYPE8OUT_CCDF
									? item.TYPE8OUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPE8OUT_EFF = []
						tempdata.TYPE8OUT_ST = []
						tempdata.TYPE8OUT_ED = []
						tempdata.TYPE8OUT_CCDF = []
					} 
					tempdata.TYPEANUMBER = this.ruleForm.TYPEANUMBER
						? parseInt(this.ruleForm.TYPEANUMBER)
						: 0
					if (tempdata.TYPEANUMBER > 0) {
						tempdata.TYPEAOUT_ORG = this.ruleForm.TYPEAOUTTab.map(
							(item) => {
								return item.TYPEAOUT_ORG
							}
						)
						tempdata.TYPEAOUT_ST = this.ruleForm.TYPEAOUTTab.map(
							(item) => {
								return parseFloat(item.TYPEAOUT_ST)
							}
						)
						tempdata.TYPEAOUT_ED = this.ruleForm.TYPEAOUTTab.map(
							(item) => {
								return parseFloat(item.TYPEAOUT_ED)
							}
						)
						tempdata.TYPEAOUT_CCDF = this.ruleForm.TYPEAOUTTab.map(
							(item) => {
								return item.TYPEAOUT_CCDF
									? item.TYPEAOUT_CCDF
									: ""
							}
						)
					} else {
						tempdata.TYPEAOUT_ORG = []
						tempdata.TYPEAOUT_ST = []
						tempdata.TYPEAOUT_ED = []
						tempdata.TYPEAOUT_CCDF = []
					}
					tempdata.MIIPRINT001 = parseInt(this.ruleForm.MIIPRINT001)
					tempdata.MIRISCAT001 = this.ruleForm.MIRISCAT001
					tempdata.MIOVRRID001 = this.ruleForm.MIOVRRID001
					tempdata.EZEANAM2001 = this.ruleForm.EZEANAM2001 
					tempdata.SETPAGEINDEX = this.activeTab
					if(this.caidantype>2){
						tempdata.MIENDAT2001 = 'FALSE'
					}else{
						tempdata.MIENDAT2001 = 'TRUE'
					}
					this.$store.dispatch("upData_early_Data", tempdata) 
					let params = {
						batchid: this.$route.query.id,
						batchinfo: "ZAOQI",
						submitjson: JSON.stringify(tempdata),
					} 
					this.$appApi
						.BATCH_SUBMIT(params)
						.then((res) => { 
							var str = res.data.substring(0, 1)
							if (str == "E") {
								let message = res.data.substring(6)
								this.$notify.error({
									title: "提交失败！",
									message: message,
									type: "success",
								})
							} else if (str == "S") {
								this.$notify({
									message: "提交成功！",
									type: "success",
								}) 
								this.$router.push({
									path: "/home",
								})
							}
						})
						.catch((err) => {
							console.log(err)
						})
					this.$emit("changeActiveTab", this.activeTab)
					this.$store.dispatch("change_early_showTab", this.activeTab)
				}
			})
		},
		daochu() {
			//导出
		},
	},
}
</script>
<style lang="scss" scoped>
.page-flex-row /deep/ .el-collapse-item__header {
	background: #f3f9fe;
}
.operation {
	width: 95%;
	height: 80px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
#img-upload {
	display: none;
}
</style>